<div id='right'>
    {HD: if $smarty.session.uid}
    <div class='userinfo'>
        <dl>
            <dt>
            <a href="{HD: $smarty.const.__ROOT__}?c=Member"><img src="{HD: $smarty.const.__FRAME__}/{HD: $userinfo.face}" width='48' height='48' alt="个人中心"/></a>
            </dt>
            <dd class='username'>
                <a href="">
                    <b>{HD: $userinfo.username}</b>
                </a>
                <a href="">
                    <i class='level lv1' title='Level 1'></i>
                </a>
            </dd>
            <dd>金币：<a href="" style="color: #888888;">{HD: $userinfo.point}<b class='point'></b></a></dd>
            <dd>经验值：{HD: $userinfo.exp}</dd>
        </dl>
        <table>
            <tr>
                <td>回答数</td>
                <td>采纳率</td>
                <td class='last'>提问数</td>
            </tr>
            <tr>
                <td><a href="{HD: $smarty.const.__ROOT__}?c=Member&m=my_answer">{HD: $userinfo.answer}</a></td>
                <td><a href="">{HD: $percent}%</a></td>
                <td class='last'><a href="{HD: $smarty.const.__ROOT__}?c=Member&m=my_ask">{HD: $userinfo.ask}</a></td>
            </tr>
        </table>
        <ul>
            <li><a href="{HD: $smarty.const.__ROOT__}?c=Member&m=my_ask">我提问的</a></li>
            <li><a href="{HD: $smarty.const.__ROOT__}?c=Member&m=my_answer">我回答的</a></li>
        </ul>
    </div>
    {HD: else}
    <div class='r-login'>
        <span class='login'><i></i>&nbsp;登录</span>
        <span class='register'><i></i>&nbsp;注册</span>
    </div> 
    {HD: /if}

    <div class='clear'></div>
    <div class='star'>
        <p class='title'>后盾问答之星</p>
        {HD: if $topAns}
         <span class='star-name'>本日回答问题最多的人</span>
        <div class='star-info'>
            <div>
                <a href="" class='star-face'>
                    <img src="{HD: $smarty.const.__FRAME__}/{HD: $topAns.face}" width='48px' height='48px' alt="头像站位"/>
                </a>
                <ul>
                    <li><a href="">{HD: $topAns.username}</a></li>
                    <i class='level lv1' title='Level 1'></i>
                </ul>
            </div>
            <ul class='star-count'>
                <li>回答数：<span>{HD: $topnum}</span></li>
                <li>采纳率：<span>{HD: $percent2}%</span></li>
            </ul>
        </div>
        {HD: /if}
        {HD: if $HistoryAns}
        <span class='star-name'>历史回答问题最多的人</span>
        <div class='star-info'>
            <div>
                <a href="" class='star-face'>
                    <img src="{HD: $smarty.const.__FRAME__}/{HD: $HistoryAns.face}" width='48px' height='48px' alt="头像站位"/>
                </a>
                <ul>
                    <li><a href="">{HD: $HistoryAns.username}</a></li>
                    <i class='level lv1' title='Level 1'></i>
                </ul>
            </div>
            <ul class='star-count'>
                <li>回答数：<span>{HD: $HistoryAns.answer}</span></li>
                <li>采纳率：<span>{HD: $percent3}%</span></li>
            </ul>
        </div>
        {HD: /if}
    </div>
   
    <div class='star-list'>
        <p class='title'>后盾问答助人光荣榜</p>
        <div>
            <ul class='ul-title'>
                <li>用户名</li>
                <li style='text-align:right;'>帮助过的人数</li>
            </ul>
            <ul class='ul-list'>
                {HD: section loop=$honor name=n}
                <li>
                    <a href="#"><i class='rank r{HD: $smarty.section.n.index+1}'></i>{HD: $honor[n].username }</a>
                    <span>{HD: $honor[n].accept}</span>
                </li>
                {HD: /section}
            </ul>
        </div>
    </div>
</div>
<!-- ---右侧结束---- -->